package com.landinfo.config;

import org.hibernate.boot.model.naming.Identifier;
import org.hibernate.engine.jdbc.env.spi.JdbcEnvironment;

public class MyPhysicalNamingStrategy extends org.hibernate.boot.model.naming.PhysicalNamingStrategyStandardImpl {

//    @Override
//    public Identifier toPhysicalTableName(Identifier name, JdbcEnvironment context) {
//        //return new Identifier("CE_" + name.getText(), name.isQuoted());
//        return new Identifier(name.getText().toLowerCase(), name.isQuoted());
//    }

    @Override
    public Identifier toPhysicalColumnName(Identifier name, JdbcEnvironment context) {
        return new Identifier(name.getText().toLowerCase(), name.isQuoted());
    }
}
